package 面向对象_特征4;

public class 面向对象_6_static2_静态方法 extends  面向对象_6_static1{

    public static void main(String[] args) {
        面向对象_6_static2_静态方法 dx  = new 面向对象_6_static2_静态方法();

        dx.age = 18;
        dx.name ="张园";



//        面向对象_6_static2_静态方法.school = "wd";
        //修改后 全部static   静态变量/方法 都会改变

        System.out.println(面向对象_6_static2_静态方法.school);
        面向对象_6_static2_静态方法.print();

        System.out.println(面向对象_6_static2_静态方法.panDuan("我自己"));


        //计数
        面向对象_6_static1 dx1 = new 面向对象_6_static1();
        面向对象_6_static1.printCound();
        面向对象_6_static1 dx2 = new 面向对象_6_static1();
        面向对象_6_static1 dx3 = new 面向对象_6_static1();
        面向对象_6_static1 dx4 = new 面向对象_6_static1();
        面向对象_6_static1.printCound();
    }
}
